import request from '@/utils/request'

// 查询车队列表
export function listAppMotorcade(query) {
  return request({
    url: '/app/information/appMotorcade/list',
    method: 'get',
    params: query
  })
}

// 查询车队详细
export function getAppMotorcade(id) {
  return request({
    url: '/app/information/appMotorcade/' + id,
    method: 'get'
  })
}

// 新增车队
export function addAppMotorcade(data) {
  return request({
    url: '/app/information/appMotorcade',
    method: 'post',
    data: data
  })
}

// 修改车队
export function updateAppMotorcade(data) {
  return request({
    url: '/app/information/appMotorcade',
    method: 'put',
    data: data
  })
}

// 删除车队
export function delAppMotorcade(id) {
  return request({
    url: '/app/information/appMotorcade/' + id,
    method: 'delete'
  })
}
